package app;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class Deposit {



    static double getInterest(//Date startDate, 
	    double amount, double interestRate, int days) {
	//int daysInYear = 365;
	//if(ClaestartDate.getYear())
	
	//long days = this.getDays(deposit.openDepositDate, closeDepositDate);
	return  amount * (interestRate / 100.0) * ((double)days / 365);

	
    }



   public static void main(String[] args){
       
       
       
       System.out.println(Deposit.getInterest(1000, 15, 20));
       System.out.println(Deposit.getInterest(1000, 15, 30));
       System.out.println(Deposit.getInterest(1000, 15, 30));
   }

}
